package com.zhongwang.business.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class QuoteApproveInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QuoteApproveInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andQuoteAppIdIsNull() {
            addCriterion("quote_app_id is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdIsNotNull() {
            addCriterion("quote_app_id is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdEqualTo(Integer value) {
            addCriterion("quote_app_id =", value, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdNotEqualTo(Integer value) {
            addCriterion("quote_app_id <>", value, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdGreaterThan(Integer value) {
            addCriterion("quote_app_id >", value, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_app_id >=", value, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdLessThan(Integer value) {
            addCriterion("quote_app_id <", value, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdLessThanOrEqualTo(Integer value) {
            addCriterion("quote_app_id <=", value, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdIn(List<Integer> values) {
            addCriterion("quote_app_id in", values, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdNotIn(List<Integer> values) {
            addCriterion("quote_app_id not in", values, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_id between", value1, value2, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppIdNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_id not between", value1, value2, "quoteAppId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIsNull() {
            addCriterion("quote_id is null");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIsNotNull() {
            addCriterion("quote_id is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteIdEqualTo(Integer value) {
            addCriterion("quote_id =", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotEqualTo(Integer value) {
            addCriterion("quote_id <>", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdGreaterThan(Integer value) {
            addCriterion("quote_id >", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_id >=", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdLessThan(Integer value) {
            addCriterion("quote_id <", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdLessThanOrEqualTo(Integer value) {
            addCriterion("quote_id <=", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIn(List<Integer> values) {
            addCriterion("quote_id in", values, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotIn(List<Integer> values) {
            addCriterion("quote_id not in", values, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdBetween(Integer value1, Integer value2) {
            addCriterion("quote_id between", value1, value2, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_id not between", value1, value2, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdIsNull() {
            addCriterion("qtt_arch_id is null");
            return (Criteria) this;
        }

        public Criteria andQttArchIdIsNotNull() {
            addCriterion("qtt_arch_id is not null");
            return (Criteria) this;
        }

        public Criteria andQttArchIdEqualTo(Integer value) {
            addCriterion("qtt_arch_id =", value, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdNotEqualTo(Integer value) {
            addCriterion("qtt_arch_id <>", value, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdGreaterThan(Integer value) {
            addCriterion("qtt_arch_id >", value, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("qtt_arch_id >=", value, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdLessThan(Integer value) {
            addCriterion("qtt_arch_id <", value, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdLessThanOrEqualTo(Integer value) {
            addCriterion("qtt_arch_id <=", value, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdIn(List<Integer> values) {
            addCriterion("qtt_arch_id in", values, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdNotIn(List<Integer> values) {
            addCriterion("qtt_arch_id not in", values, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdBetween(Integer value1, Integer value2) {
            addCriterion("qtt_arch_id between", value1, value2, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQttArchIdNotBetween(Integer value1, Integer value2) {
            addCriterion("qtt_arch_id not between", value1, value2, "qttArchId");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeIsNull() {
            addCriterion("quote_app_code is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeIsNotNull() {
            addCriterion("quote_app_code is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeEqualTo(Integer value) {
            addCriterion("quote_app_code =", value, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeNotEqualTo(Integer value) {
            addCriterion("quote_app_code <>", value, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeGreaterThan(Integer value) {
            addCriterion("quote_app_code >", value, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_app_code >=", value, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeLessThan(Integer value) {
            addCriterion("quote_app_code <", value, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeLessThanOrEqualTo(Integer value) {
            addCriterion("quote_app_code <=", value, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeIn(List<Integer> values) {
            addCriterion("quote_app_code in", values, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeNotIn(List<Integer> values) {
            addCriterion("quote_app_code not in", values, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_code between", value1, value2, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCodeNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_code not between", value1, value2, "quoteAppCode");
            return (Criteria) this;
        }

        public Criteria andQuoteApprIsNull() {
            addCriterion("quote_appr is null");
            return (Criteria) this;
        }

        public Criteria andQuoteApprIsNotNull() {
            addCriterion("quote_appr is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteApprEqualTo(String value) {
            addCriterion("quote_appr =", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNotEqualTo(String value) {
            addCriterion("quote_appr <>", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprGreaterThan(String value) {
            addCriterion("quote_appr >", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprGreaterThanOrEqualTo(String value) {
            addCriterion("quote_appr >=", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprLessThan(String value) {
            addCriterion("quote_appr <", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprLessThanOrEqualTo(String value) {
            addCriterion("quote_appr <=", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprLike(String value) {
            addCriterion("quote_appr like", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNotLike(String value) {
            addCriterion("quote_appr not like", value, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprIn(List<String> values) {
            addCriterion("quote_appr in", values, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNotIn(List<String> values) {
            addCriterion("quote_appr not in", values, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprBetween(String value1, String value2) {
            addCriterion("quote_appr between", value1, value2, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteApprNotBetween(String value1, String value2) {
            addCriterion("quote_appr not between", value1, value2, "quoteAppr");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderIsNull() {
            addCriterion("quote_app_order is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderIsNotNull() {
            addCriterion("quote_app_order is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderEqualTo(String value) {
            addCriterion("quote_app_order =", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotEqualTo(String value) {
            addCriterion("quote_app_order <>", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderGreaterThan(String value) {
            addCriterion("quote_app_order >", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderGreaterThanOrEqualTo(String value) {
            addCriterion("quote_app_order >=", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderLessThan(String value) {
            addCriterion("quote_app_order <", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderLessThanOrEqualTo(String value) {
            addCriterion("quote_app_order <=", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderLike(String value) {
            addCriterion("quote_app_order like", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotLike(String value) {
            addCriterion("quote_app_order not like", value, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderIn(List<String> values) {
            addCriterion("quote_app_order in", values, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotIn(List<String> values) {
            addCriterion("quote_app_order not in", values, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderBetween(String value1, String value2) {
            addCriterion("quote_app_order between", value1, value2, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppOrderNotBetween(String value1, String value2) {
            addCriterion("quote_app_order not between", value1, value2, "quoteAppOrder");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateIsNull() {
            addCriterion("quote_app_date is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateIsNotNull() {
            addCriterion("quote_app_date is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateEqualTo(Date value) {
            addCriterionForJDBCDate("quote_app_date =", value, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("quote_app_date <>", value, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateGreaterThan(Date value) {
            addCriterionForJDBCDate("quote_app_date >", value, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("quote_app_date >=", value, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateLessThan(Date value) {
            addCriterionForJDBCDate("quote_app_date <", value, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("quote_app_date <=", value, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateIn(List<Date> values) {
            addCriterionForJDBCDate("quote_app_date in", values, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("quote_app_date not in", values, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("quote_app_date between", value1, value2, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("quote_app_date not between", value1, value2, "quoteAppDate");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentIsNull() {
            addCriterion("quote_app_comment is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentIsNotNull() {
            addCriterion("quote_app_comment is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentEqualTo(String value) {
            addCriterion("quote_app_comment =", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentNotEqualTo(String value) {
            addCriterion("quote_app_comment <>", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentGreaterThan(String value) {
            addCriterion("quote_app_comment >", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentGreaterThanOrEqualTo(String value) {
            addCriterion("quote_app_comment >=", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentLessThan(String value) {
            addCriterion("quote_app_comment <", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentLessThanOrEqualTo(String value) {
            addCriterion("quote_app_comment <=", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentLike(String value) {
            addCriterion("quote_app_comment like", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentNotLike(String value) {
            addCriterion("quote_app_comment not like", value, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentIn(List<String> values) {
            addCriterion("quote_app_comment in", values, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentNotIn(List<String> values) {
            addCriterion("quote_app_comment not in", values, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentBetween(String value1, String value2) {
            addCriterion("quote_app_comment between", value1, value2, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppCommentNotBetween(String value1, String value2) {
            addCriterion("quote_app_comment not between", value1, value2, "quoteAppComment");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusIsNull() {
            addCriterion("quote_app_status is null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusIsNotNull() {
            addCriterion("quote_app_status is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusEqualTo(Integer value) {
            addCriterion("quote_app_status =", value, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusNotEqualTo(Integer value) {
            addCriterion("quote_app_status <>", value, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusGreaterThan(Integer value) {
            addCriterion("quote_app_status >", value, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_app_status >=", value, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusLessThan(Integer value) {
            addCriterion("quote_app_status <", value, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusLessThanOrEqualTo(Integer value) {
            addCriterion("quote_app_status <=", value, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusIn(List<Integer> values) {
            addCriterion("quote_app_status in", values, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusNotIn(List<Integer> values) {
            addCriterion("quote_app_status not in", values, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_status between", value1, value2, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andQuoteAppStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_app_status not between", value1, value2, "quoteAppStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusIsNull() {
            addCriterion("cont_app_ava_status is null");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusIsNotNull() {
            addCriterion("cont_app_ava_status is not null");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusEqualTo(Integer value) {
            addCriterion("cont_app_ava_status =", value, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusNotEqualTo(Integer value) {
            addCriterion("cont_app_ava_status <>", value, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusGreaterThan(Integer value) {
            addCriterion("cont_app_ava_status >", value, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("cont_app_ava_status >=", value, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusLessThan(Integer value) {
            addCriterion("cont_app_ava_status <", value, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusLessThanOrEqualTo(Integer value) {
            addCriterion("cont_app_ava_status <=", value, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusIn(List<Integer> values) {
            addCriterion("cont_app_ava_status in", values, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusNotIn(List<Integer> values) {
            addCriterion("cont_app_ava_status not in", values, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusBetween(Integer value1, Integer value2) {
            addCriterion("cont_app_ava_status between", value1, value2, "contAppAvaStatus");
            return (Criteria) this;
        }

        public Criteria andContAppAvaStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("cont_app_ava_status not between", value1, value2, "contAppAvaStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}